package com.stone.design.practice.trycatch;

import java.util.HashMap;

/**
 * @author Stone
 * @version V1.0
 * @description:
 * @date 7/1/18 11:12
 * @email redsstone@163.com
 */
public class TestTry {

    public static HashMap<String, String> getMap() {

        HashMap<String, String> map = new HashMap();
        map.put("stone", "haha");

        try {
            map.put("stone", "try");
            HashMap<String, String> map1 = map;
            return map1;

        }catch (Exception e) {
            map.put("stone", "e");
        }finally {

            map.put("stone", "finally");
            map = null;
        }
        return map;
    }
}
